package com.zhufeng.jvm.classloader;

public class MyTest24 implements Runnable {
	
	private Thread thread;
	
	public MyTest24() {
		this.thread = new Thread(this);
		thread.start();
	}

	@Override
	public void run() {
		ClassLoader cl = this.thread.getContextClassLoader();
		
		this.thread.setContextClassLoader(cl);
		
		System.out.println("class: " + cl.getClass());
		
		System.out.println("parent: " + cl.getParent().getClass());
	}

	public static void main(String[] args) {
		new MyTest24();
	}

}
